package cn.gson.work.model.service;

import cn.gson.work.model.mapper.TrecordMapper;
import cn.gson.work.model.pojos.Trecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class TrecordService {
    @Autowired
    TrecordMapper trm;
    public List<Trecord> findTrecord(String rno){
        return trm.findTrecord(rno);
    }
    public void delTrecord(long rno){
        trm.delTrecord(rno);
    }
    public void addTrecord(Trecord trecord){
        trm.addTrecord(trecord);
    }
    public List<Trecord> findTrecordByRno(String rno){
        return trm.findTrecordByRno(rno);
    }
}
